/**
 * Created by user on 2016/12/27.
 */
var Gen={
    genCode:function () {
        $.post("/index",$("#genForm").serialize(),function (data) {
            if(data.success){
                alert(data.tips);
            }
            $("#infomsg").html(data.tips);
        },"json");
    }
};